package com.xmut.mall.store.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xmut.mall.store.dto.StoreSearchParams;
import com.xmut.mall.store.entity.StoreInfoEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface StoreInfoDao extends BaseMapper<StoreInfoEntity> {
    /**
     * 获取商城店铺列表分页数据
     * @param initPage
     * @param params
     * @return
     */
    IPage<StoreInfoEntity> getStoreByPage(Page<Object> initPage,@Param("params") StoreSearchParams params);
}
